<?php

class Sgit_Validate_Multiplo50 extends Zend_Validate_Abstract
{
    const MULTIPLO = 'multiplo';

    protected $_messageTemplates = array(self::MULTIPLO => "'%value%' no es multiplo de 50");


    public function isValid($value)
    {
        $this->_setValue($value);

        if ($value % 50 != 0)
        {
            $this->_error(self::MULTIPLO);
            return false;
        }

        return true;
    }
}
